package com.secxiot.provider.task.entity;

import java.io.Serializable;
import java.util.Date;

public class TaskExecution implements Serializable {
    private Long id;

    /**
     * 任务id
     */
    private Long taskId;

    /**
     * 接收者id
     */
    private Long receiverId;

    /**
     * 接收者姓名
     */
    private String receiverName;

    /**
     * 接收者类型，字典：普通，交接
     */
    private String receiverType;

    /**
     * 是否推送，0：未推送 1：已推送
     */
    private String sendFlag;

    /**
     * 任务时间id
     */
    private Long taskTimeId;

    /**
     * 任务完成时间
     */
    private Date taskTime;

    /**
     * 当前循环次数
     */
    private Integer cycleCount;

    /**
     * 状态，字典：初始化，待接收，待确认，已移交，已确认，已过期
     */
    private String confirmStatus;

    /**
     * 确认时间
     */
    private Date confirmTime;

    /**
     * 是否删除，0：未删除 1：已删除
     */
    private Integer delFlag;

    /**
     * 是否上报位置，0：不上报 1：上报
     */
    private Integer reportLocation;

    /**
     * 是否视频，0：不视频 1：视频
     */
    private Integer reportVideo;
    /**
     * 任务类型
     */
    private String taskType;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public Long getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Long receiverId) {
        this.receiverId = receiverId;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName == null ? null : receiverName.trim();
    }

    public String getReceiverType() {
        return receiverType;
    }

    public void setReceiverType(String receiverType) {
        this.receiverType = receiverType == null ? null : receiverType.trim();
    }

    public String getSendFlag() {
        return sendFlag;
    }

    public void setSendFlag(String sendFlag) {
        this.sendFlag = sendFlag == null ? null : sendFlag.trim();
    }

    public Long getTaskTimeId() {
        return taskTimeId;
    }

    public void setTaskTimeId(Long taskTimeId) {
        this.taskTimeId = taskTimeId;
    }

    public Date getTaskTime() {
        return taskTime;
    }

    public void setTaskTime(Date taskTime) {
        this.taskTime = taskTime;
    }

    public Integer getCycleCount() {
        return cycleCount;
    }

    public void setCycleCount(Integer cycleCount) {
        this.cycleCount = cycleCount;
    }

    public String getConfirmStatus() {
        return confirmStatus;
    }

    public void setConfirmStatus(String confirmStatus) {
        this.confirmStatus = confirmStatus == null ? null : confirmStatus.trim();
    }

    public Date getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(Date confirmTime) {
        this.confirmTime = confirmTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType == null ? null : taskType.trim();
    }

    public Integer getReportLocation() {
        return reportLocation;
    }

    public void setReportLocation(Integer reportLocation) {
        this.reportLocation = reportLocation;
    }

    public Integer getReportVideo() {
        return reportVideo;
    }

    public void setReportVideo(Integer reportVideo) {
        this.reportVideo = reportVideo;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", taskId=").append(taskId);
        sb.append(", receiverId=").append(receiverId);
        sb.append(", receiverName=").append(receiverName);
        sb.append(", receiverType=").append(receiverType);
        sb.append(", sendFlag=").append(sendFlag);
        sb.append(", taskTimeId=").append(taskTimeId);
        sb.append(", taskTime=").append(taskTime);
        sb.append(", cycleCount=").append(cycleCount);
        sb.append(", confirmStatus=").append(confirmStatus);
        sb.append(", confirmTime=").append(confirmTime);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", taskType=").append(taskType);
        sb.append(", reportLocation=").append(reportLocation);
        sb.append(", reportVideo=").append(reportVideo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}